<?php

function getCountry($ip)
{
$baseurl="http://api.wipmania.com/";
$call=$baseurl.$ip;


$http = curl_init();
curl_setopt($http,CURLOPT_RETURNTRANSFER,TRUE);
curl_setopt($http,CURLOPT_URL,$call);

$result = curl_exec($http);

return $result;
}


?>